Skip to content

chore(release): prepare integration packages - #108

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
tegami/version-packages
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
tegami/version-packages

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

All bumped packages.

Package From To
@samva/email-sdk 0.12.0 0.13.0
@samva/better-auth 0.11.0 0.12.0

Changelogs

2026-11-08-sdk-037.md

Show Bumped Packages (2)
Package Bump
npm:@samva/email-sdk minor
npm:@samva/better-auth minor

Require Samva SDK 0.37

Both adapters now require samva@^0.37.0 and validate against SDK 0.37.0.
Only the current SDK minor is supported; upgrade Samva alongside the adapter.

The adapter surface is unchanged. @samva/email-sdk builds a flat email payload,
calls email.send, and reads id from the response. @samva/better-auth builds
{ to, channel: "email", email }, calls messages.send, and ignores the
response. Both contracts survived 0.36 and 0.37. What changed around them:

  • Mailbox keys and extension installations carry decision policies instead of
    sendMode. A held send returns approvalRequired with a decision; a person
    approves with that decision's reviewRound, and a stale round returns 409.
    Replacing a policy requires the version you read as ifVersion.
  • samva 0.37 removes the RSA v2 helpers from the webhooks package.
    Verify a delivery with verify or verifyRequest from samva/webhooks and
    the endpoint signing secret.
  • Template responses and create/update payloads no longer expose isActive.
    templates.delete and templates.deleteProject delete permanently and refuse
    a referenced template with TemplateInUseError (409).
  • Scheduled sends, analytics, and conversations accept namespaceId, and an
    agent's knowledge sources must belong to its namespace.

2026-11-05-sdk-035.md

Show Bumped Packages (2)
Package Bump
npm:@samva/email-sdk minor
npm:@samva/better-auth minor

Require Samva SDK 0.35

Both adapters now require samva@^0.35.0 and validate against SDK 0.35.0.
Only the current SDK minor is supported; upgrade Samva alongside the adapter.

Publish

The following packages will be published if merged:

Package Version Registry
@samva/email-sdk 0.13.0 npm
@samva/better-auth 0.12.0 npm

@github-actions
github-actions Bot force-pushed the tegami/version-packages branch 2 times, most recently from ca27b06 to 405432a Compare November 7, 2026 17:53
aryasaatvik added a commit that referenced this pull request Nov 8, 2026
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Propagate `samva` 0.37.0 and `@samva/cli` 0.31.0 into the maintained
integrations. Both published adapters require only the current SDK minor
and receive minor Tegami notes for the peer-range change.

Source releases:
[`samva@0.36.0`](https://github.com/SamvaHQ/samva-typescript/releases/tag/samva%400.36.0),
[`samva@0.37.0`](https://github.com/SamvaHQ/samva-typescript/releases/tag/samva%400.37.0),
[`@samva/webhooks@0.37.0`](https://github.com/SamvaHQ/samva-typescript/releases/tag/%40samva%2Fwebhooks%400.37.0),
and
[`@samva/cli@0.31.0`](https://github.com/SamvaHQ/samva-cli/releases/tag/%40samva%2Fcli%400.31.0).
Reviewed the producer's SDK, webhooks, and CLI changelogs plus the
published package declarations (`samva` 0.35.0 and 0.37.0,
`@samva/webhooks` 0.36.0 and 0.37.0, `@samva/cli` 0.30.0 and 0.31.0).
Producer checkouts were read only.

| Repository surface | Impact and evidence | Disposition |
| --- | --- | --- |
| Both adapters; all 14 example manifests; Supabase Deno map | SDK
dev/peer/dependency ranges move to ^0.37.0, including
`examples/mailbox-agent`, which #109 had left on ^0.36.0. External Deno
import pins 0.37.0. TSX template example uses CLI ^0.31.0. Bun 1.4.4
lock regenerated from npm and resolves one `samva@0.37.0` with
`@samva/webhooks@0.37.0`. | affected |
| TSX example and TSX cookbook authoring toolchain | `@samva/cli` 0.31
drives authoring 0.23.x and refuses a 0.22.x project (`this project has
@samva/markup 0.22.1, but this CLI drives 0.23.x`). `@samva/markup` and
`@samva/vite` move to ^0.23.0. 0.23.0 is a compatibility re-release:
`dist` and `package.json` differ from 0.22.1 only by the version string,
and both templates build and check unchanged. | affected |
| Root README, adapter READMEs, TSX example README,
Effect/mailbox/Supabase/TSX cookbooks | Current-minor references updated
to 0.37.0 and CLI 0.31.0. No older-line support matrix. | affected |
| Plugin distribution guidance | README names the current SDK/CLI minors
and explains decision policies, HMAC webhook verification, permanent
template deletion, and namespace-scoped reads. Canonical
skill/instructions and all seven references reviewed; immutable skill
bytes and `provenance.json` untouched. | affected |
| Mailbox-agent extension comment | Still told readers to install with
`--send-mode approval`, which 0.36 removed. Now points at a `--policy`
whose `write` rules hold for a person, matching #109. | affected |
| Adapter send paths and request bodies; every cookbook and plugin
SDK/CLI snippet | `@samva/email-sdk` builds a flat email payload, calls
`email.send`, and reads `id` from the response; `@samva/better-auth`
builds `{ to, channel: "email", email }`, calls `messages.send`, and
ignores the response. `EmailSendMessagePayload`,
`ReplyMailboxEmailPayload`, and `SendMailboxEmailPayload` are
byte-identical between 0.35.0 and 0.37.0. Neither adapter reads a
response into a request. Webhook calls already use `eventTypes`, and no
undeclared caller fields were found. | unaffected |
| Webhook verification | 0.37 removes `verifyWebhookAtWithPublicKeys`,
`WebhookSignatureVersion`, `webhookSignedContent`, and
`encodeWebhookSignature` from `@samva/webhooks/protocol`. Every
integration uses `verifyRequest` or `createWebhookHandler` with the
endpoint signing secret, and no direct `@samva/webhooks` dependency
exists to bump. | unaffected |
| Decision policies and held actions | 0.36 replaces mailbox grant and
API key `sendMode` and agent/integration `mode` with
`policy`/`decision`. Adapters send through `email.send` or
`messages.send` and never touch grants, agents, or approvals.
`MailboxSendReceipt.state` still enumerates `approvalRequired`, and
`decision` is nullable there. Guidance updated in #109 and carried
forward here. | unaffected |
| Template `isActive`, `templates.delete`, `TemplateInUseError` |
Template reads and create/update payloads no longer expose `isActive`.
No integration reads or writes the field, and none deletes a template.
`TemplateInUseError` (409) is added to the SDK error set only. |
unaffected |
| Namespaced scheduled sends, analytics, conversations, knowledge
sources | New optional `namespaceId` inputs on both clients. No
integration calls scheduled messages, analytics, or conversations;
`templates.createFromWebsite` already passes an optional `namespaceId`.
| unaffected |
| Effect client | Adds the `Policies` module and `namespaceId` filters;
existing `Client`, `Email`, and mailbox entrypoints are unchanged. No
analytics callers, so the 0.35 `Date` filter change stays inert. |
unaffected |

## What changed in 0.36 and 0.37 that matters here

- **0.36 — decision rules.** Mailbox actions carry a decision (`allow`,
`hold`, or `refuse`); policies replace `sendMode` and agent `mode`.
Policy reads return `version`, replacement requires `ifVersion`, and a
stale write is `409`. Approval and denial require the observed
`decision.reviewRound`. Templates and projects can be permanently
deleted. Namespace keys reach scheduled sends, analytics, conversations,
and brands, and an agent's knowledge sources must belong to its
namespace.
- **0.37 — HMAC only.** The RSA `v2` webhook helpers left the protocol
entrypoint; HMAC `v1` signing and verification are unchanged, and Samva
never sent `v2`.

## Validation

Bun 1.4.4, Node 22.23.4, Deno 2.9.5 (matches the CI pin):

- `bun install`, then `bun install --frozen-lockfile`: passed, no
changes.
- `bun run build --continue`: 12/12 tasks. `bun run typecheck
--continue`: 18/18 tasks. `bun run test`: 7 files, 139 tests.
- `bun run lint`: warnings only, all in unchanged code. `bun run
format:check`: 229 files clean.
- `bun run validate:agent-plugin`, `bun --filter tsx-template-samva
check`, the Supabase Deno `deno check`, and `git diff --check`: passed.
- No live email sends, publishing, or deploys.

## Local testing checklist

1. `bun install && bun install --frozen-lockfile`
2. `bun run build --continue && bun run typecheck --continue && bun run
test`
3. `bun run validate:agent-plugin && bun --filter tsx-template-samva
check`
4. `cd examples/supabase-auth-hook && deno check --node-modules-dir=none
--no-lock --min-dep-age=0 supabase/functions/send-email/index.ts`

## Review

Greptile's one finding was correct: the 0.37 release note described both
adapters as using the same send call. Fixed in `937918a`, and this table
now states each path separately.

## Release

Merging this PR does not publish anything by itself. Its Tegami minor
notes are picked up by the `tegami/version-packages` PR, and that PR
publishes `@samva/email-sdk` and `@samva/better-auth` when it merges.

This PR is intentionally not labelled `release`, and #108
(`tegami/version-packages`) is untouched.
<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-87270b0f-af3f-568f-b436-9942afd2918d?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-87270b0f-af3f-568f-b436-9942afd2918d&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@github-actions
github-actions Bot force-pushed the tegami/version-packages branch from 405432a to 12fa89f Compare November 8, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants